#include <iostream>

#include "PrintHandler.h"
#include "HandlerRegister.h"

static HandlerProvider provider("prt", PrintHandler()); // 登记一个prototype 对象

IHandler* PrintHandler::Clone() const
{
	return new PrintHandler(*this);
}

void PrintHandler::Handle(const std::string& commandLine)
{
	std::cout << "Print a file" << std::endl;
}
